/**
 * 主页js
 */
if (window.location.href == 'http://nyj.jl.gov.cn/' || window.location.href == 'http://nyj.jl.gov.cn/index.htm') {
//首页

	
	// 总计时器，保证目标加载完毕再执行js（轮播+国务院）
	_EsdDynamicTransformationScript.intervalNyj = setInterval(function(){
		
		if( ( $(".main .carousel .picBox:eq(3) .title a") != undefined ) 
				&& ( $("#szflist a:last") != undefined ) ){
			clearInterval(_EsdDynamicTransformationScript.intervalNyj);
			
			part_First();
			part_Second();
			
		}
		
	}, 500);
	
	
	
	
	
	var part_Second = function(){
	
	//国务院-省政府信息
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfTitle1 = $(".m-r-0:eq(0) .modal-tit span:eq(0) a:eq(0)");
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfTitle2 = $(".m-r-0:eq(0) .modal-tit span:eq(1) a:eq(0)");
		   
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm1Start = $("#gwylist a:first");
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm2Start = $("#szflist a:first");
		
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm1End = $("#gwylist a:last");
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm2End = $("#szflist a:last");
		
		//国务院
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfTitle1.focus(function (e) {
//			showgwy();
			e = $(this).mouseover();
			$(document).bind("keydown.keydown_1", function (e) {
				if(e.shiftKey&&e.keyCode==9){
				
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm1Start.focus()
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfTitle1.blur(function () {
			$(document).unbind("keydown.keydown_1");
		});
		
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm1Start.focus(function () {
			$(document).bind("keydown.keydown_s1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTag_nyj_gwySzfTitle1.focus();
					return false;
				}else if (e.keyCode == 9) {
					
				}
			});
		});
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm1Start.blur(function () {
			$(document).unbind("keydown.keydown_s1");
		});
		
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm1End.focus(function () {
			$(document).bind("keydown.keydown_e1", function (e) {
				if(e.shiftKey&&e.keyCode==9){
		
				} else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTag_nyj_gwySzfTitle2.mouseover();
					_EsdDynamicTransformationScript.esdTag_nyj_gwySzfTitle2.focus();
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm1End.blur(function () {
			$(document).unbind("keydown.keydown_e1");
		});
		
		//省政府
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfTitle2.focus(function (e) {
//			showszf();
//			e = $(this).mouseover();
			$(document).bind("keydown.keydown_2", function (e) {
				if(e.shiftKey&&e.keyCode==9){
//					showgwy();
					_EsdDynamicTransformationScript.esdTag_nyj_gwySzfTitle1.mouseover();
					_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm1End.focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm2Start.focus();
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfTitle2.blur(function () {
			$(document).unbind("keydown.keydown_2");
		});
		
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm2Start.focus(function () {
			$(document).bind("keydown.keydown_s2", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTag_nyj_gwySzfTitle2.focus();
					return false;
				}else if (e.keyCode == 9) {
					
				}
			});
		});
		_EsdDynamicTransformationScript.esdTag_nyj_gwySzfBoxNUm2Start.blur(function () {
			$(document).unbind("keydown.keydown_s2");
		});
		
		
	}
	
		
		
}